From 49fe3046ae581ad78174a44dc91031b992dd6d0d Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 12 Jun 2007 17:07:48 +0000 Subject: [PATCH] use PANGO_BREAK_WORD_CHAR instead of PANGO_BREAK_WORD so the text cell 2007-06-12 Michael Natterer * gtk/gtkiconview.c (update_text_cell): use PANGO_BREAK_WORD_CHAR instead of PANGO_BREAK_WORD so the text cell doesn't overflow the wrap-width if there is no whitespace found to break at. Fixes bug #446107. svn path=/trunk/; revision=18112 --- ChangeLog | 9 ++++++++- gtk/gtkiconview.c | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9cc49b83ec..7646d70697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-06-12 Michael Natterer + + * gtk/gtkiconview.c (update_text_cell): use PANGO_BREAK_WORD_CHAR + instead of PANGO_BREAK_WORD so the text cell doesn't overflow the + wrap-width if there is no whitespace found to break at. + Fixes bug #446107. + 2007-06-12 Kristian Rietveld Fix #410815, reported by Lucas Rocha. @@ -93,7 +100,7 @@ * gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_arc): fix angles by flipping the coordinate system back to its original y - direction. The implementtion is still broken for ellipses, will + direction. The implementation is still broken for ellipses, will have to simulate them using bezier curves. 2007-06-10 Cody Russell diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 65c2a91153..46db615363 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -4912,14 +4912,14 @@ update_text_cell (GtkIconView *icon_view) if (icon_view->priv->orientation == GTK_ORIENTATION_VERTICAL) g_object_set (info->cell, "alignment", PANGO_ALIGN_CENTER, - "wrap-mode", PANGO_WRAP_WORD, + "wrap-mode", PANGO_WRAP_WORD_CHAR, "xalign", 0.0, "yalign", 0.0, NULL); else g_object_set (info->cell, "alignment", PANGO_ALIGN_LEFT, - "wrap-mode", PANGO_WRAP_WORD, + "wrap-mode", PANGO_WRAP_WORD_CHAR, "xalign", 0.0, "yalign", 0.0, NULL); -- 2.30.2